package cn.iocoder.yudao.module.wms.controller.admin.pomain.vo;

import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO;
import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO;
import cn.iocoder.yudao.module.wms.dal.dataobject.person.PersonDO;
import cn.iocoder.yudao.module.wms.dal.dataobject.vendor.VendorDO;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.VO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 采购订单主 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PomainRespVO implements VO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "3957")
    @ExcelProperty("id")
    private Integer id;

    @Schema(description = "流水号")
    @ExcelProperty("流水号")
    private String code;

    @Schema(description = "业务员编码")
    @ExcelProperty("业务员编码")
    @Trans(type = TransType.SIMPLE, target = PersonDO.class, fields = "name", ref = "cpersoncodeName")
    private Integer cpersonId;
    private String cpersoncodeName;

    @Schema(description = "部门编码")
    @ExcelProperty("部门编码")
    @Trans(type = TransType.SIMPLE, target = DeptDO.class, fields = "name", ref = "cdepcodeName")
    private Integer cdepId;
    private String cdepcodeName;



    @Schema(description = "供应商编码")
    @ExcelProperty("供应商编码")
    @Trans(type = TransType.SIMPLE, target = VendorDO.class, fields = "name", ref = "cvencodeName")
    private Integer cvenId;
    private String cvencodeName;

    @Schema(description = "订单日期")
    @ExcelProperty("订单日期")
    private LocalDateTime ddate;

    @Schema(description = "备注", example = "你猜")
    @ExcelProperty("备注")
    private String cmemo;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "审核时间")
    @ExcelProperty("审核时间")
    private LocalDateTime checkTime;

    @Schema(description = "审核人")
    @ExcelProperty("审核人")
    private Long checkBy;


    @Schema(description = " ACT_HI_PROCINST 表的 PROC_INST_ID_ 字段")
    private String processInstanceId;
    @Schema(description = "状态")
    @ExcelProperty("状态")
    private Integer status;

    /**
     * 采购总数量
     */
    private Double sum;

    /**
     * 入库数量
     */
    private Double rkSum;

}